﻿

<div ng-controller="UsuarioController">

        <form ng-submit="save()">

            login    :<input type="text" ng-model="usuario.login" /><br />
            password :<input type="text" ng-model="usuario.password" /><br />
            nombre    :<input type="text" ng-model="usuario.nombre" /><br />
            rol    :<input type="text" ng-model="usuario.rol" /><br />
            <button type="submit">save</button>


        </form>
        <table border="1">
            <tr ng-repeat="d in usuarios">
                <td> {{d.login}} </td>
                <td> {{d.password}} </td>
                <td> {{d.nombre}} </td>
                <td> {{d.rol}} </td>
                <td><a href="" ng-click="delete(d.id)">Eliminar</a></td>
                <td><a href="" ng-click="selec(d)">Update</a></td>
            </tr>


        </table>

    </div>
